// 第一步：引入createRouter
import {createRouter,createWebHistory} from 'vue-router'
import Sysuser from '@/views/sys/user/index.vue'
import Admiin from '@/layouts/admin.vue'
const router = createRouter({
    history:createWebHistory(), //路由器的工作模式（稍后讲解）
    routes:[
        {   path:"/",
            component:Admiin,
            children:[
                {
                    path:"/sys/user",
                    component:Sysuser,
                }
            ]
        },
    ]
})


// 暴露出去router
export default router